import { _t } from '../../i18n/base'
Page({
  data: {
    lang: {},
  },
  selectRouteHandle(e) {
    let type = e.currentTarget.dataset.type
    if (type == 1) {
      wx.navigateTo({
        url: '../../pages/pubService/pubService',
      })
    } else {
      wx.navigateTo({
        url: `../../pages/interactionMap/interactionMap?locaInfo=${this.data.locaInfo}`,
      })
    }
  },
  onLoad(e) {
    if (e.locaInfo) {
      this.setData({
        locaInfo: e.locaInfo,
      })
    }
    this.setData({
      lang: _t(),
    })
    wx.setNavigationBarTitle({
      title: _t()['选择地区'],
    })
  },
})
